package com.mini.game.dbbase;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class TableData {

    private Map<Object, WrapEntity> dataMap;

    private JpaRepository jpaRepository;

    private int delaySecond;

    public TableData(int delaySecond, JpaRepository jpaRepository) {
        this.delaySecond = delaySecond;
        this.jpaRepository = jpaRepository;
        this.dataMap = new ConcurrentHashMap<>();
    }

    public Map<Object, WrapEntity> getDataMap() {
        return dataMap;
    }

    public void setDataMap(Map<Object, WrapEntity> dataMap) {
        this.dataMap = dataMap;
    }

    public JpaRepository getJpaRepository() {
        return jpaRepository;
    }

    public void setJpaRepository(JpaRepository jpaRepository) {
        this.jpaRepository = jpaRepository;
    }

    public int getDelaySecond() {
        return delaySecond;
    }

    public void setDelaySecond(int delaySecond) {
        this.delaySecond = delaySecond;
    }
}
